import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 创建默认风扇对象 Fan1
        Fan fan1 = new Fan();

        // 输入自定义风扇的属性
        int fanSpeed = scanner.nextInt();
        boolean fanOn = scanner.nextBoolean();
        double fanRadius = scanner.nextDouble();
        String fanColor = scanner.next();

        // 创建自定义风扇对象 Fan2
        Fan fan2 = new Fan(fanSpeed, fanOn, fanRadius, fanColor);

        // 输出默认风扇的属性
        System.out.println("-------");
        System.out.println("Default");
        System.out.println("-------");
        System.out.println(fan1.toString());

        // 输出自定义风扇的属性
        System.out.println("-------");
        System.out.println("My Fan");
        System.out.println("-------");
        System.out.println(fan2.toString());
    }
}
 class Fan {
    // 常量表示风扇的速度
    public static final int SLOW = 1;
    public static final int MEDIUM = 2;
    public static final int FAST = 3;

    // 私有数据域
    private int speed;  // 风扇速度，默认值为 SLOW
    private boolean on; // 风扇是否打开，默认值为 false
    private double radius; // 风扇半径，默认值为 5
    private String color; // 风扇颜色，默认值为 white

    // 无参构造方法
    public Fan() {
        this.speed = SLOW;
        this.on = false;
        this.radius = 5;
        this.color = "white";
    }

    // 有参构造方法
    public Fan(int fanSpeed, boolean fanOn, double fanRadius, String fanColor) {
        this.speed = fanSpeed;
        this.on = fanOn;
        this.radius = fanRadius;
        this.color = fanColor;
    }

    // 访问器和修改器
    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public boolean isOn() {
        return on;
    }

    public void setOn(boolean on) {
        this.on = on;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    // toString 方法
    @Override
    public String toString() {
        if (on) {
            return "speed " + speed + "\n" +
                   "color " + color + "\n" +
                   "radius " + radius + "\n" +
                   "fan is on";
        } else {
            return "speed " + speed + "\n" +
                   "color " + color + "\n" +
                   "radius " + radius + "\n" +
                   "fan is off";
        }
    }
}